import request from '@/utils/request'

// 查询入库单管理列表
export function listToWarehouse(query) {
  return request({
    url: '/storage/toWarehouse/list',
    method: 'get',
    params: query
  })
}

// 查询入库单管理详细
export function getToWarehouse(id) {
  return request({
    url: '/storage/toWarehouse/' + id,
    method: 'get'
  })
}

// 新增入库单管理
export function addToWarehouse(data) {
  return request({
    url: '/storage/toWarehouse',
    method: 'post',
    data: data
  })
}

// 修改入库单管理
export function updateToWarehouse(data) {
  return request({
    url: '/storage/toWarehouse',
    method: 'put',
    data: data
  })
}

// 删除入库单管理
export function delToWarehouse(id) {
  return request({
    url: '/storage/toWarehouse/' + id,
    method: 'delete'
  })
}
